package com.example.lt.controller;

import com.example.lt.common.ApiResult;
import com.example.lt.model.AppUser;
import com.example.lt.service.AppUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app")
public class AppUserController {

//    @Autowired
//    private AppUserService appUserService;
    @GetMapping("test")
    public Object Test(){
        String str = "hello world!";
        return ApiResult.success(str);
    }

//    @GetMapping("list")
//    public Object AppUserList(){
//        List<AppUser> appUserList = appUserService.appUserList();
//        return ApiResult.success(appUserList);
//    }


}
